html, body {
    height: 100%;
}
#wrap {
    min-height: 100%;
    position: relative;
}
#content {
    padding-bottom: 40px;
}
#footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 25px;
}